package com.atguigu.devops.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author lfy
 * @Description
 * @create 2022-10-26 12:06
 */
@RestController
public class HelloController {


    @GetMapping("/")
    public String hello(){
        return "当前时间：：：" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
    }
}
